﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using DTO;
using DAO;
namespace Banking.Quản_lý
{
    public partial class InsertChucVu : UserControl
    {
        private ChucVu chucVu;
        public InsertChucVu()
        {
            InitializeComponent();
        }

        private void btnLuu_Click(object sender, EventArgs e)
        {
            chucVu = new ChucVu();
            chucVu.TenChucVu = txtTenChucVu.Text;
            chucVu.MoTa = txtMoTa.Text;
            ChucVuDAO.InsertChucVu(chucVu);
            MessageBox.Show("Them chức vụ thành công");
        }
    }
}
